home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / tools / lu62 / port / ipc.h < prev    next >
C/C++ Source or Header  |  1996-07-10  |  799b  |  21 lines

  1. /* COMMON IPC ACCESS STRUCTURE */
  2. struct ipc_perm {
  3.     ushort uid;    /* owner user identifier */
  4.     ushort gid;    /* owner group identifier */
  5.     ushort cuid;    /* creator user identifier */
  6.     ushort cgid;    /* creator group identifier */
  7.     ushort mode;    /* access code */
  8.     ushort seq;    /* slot usage sequence number */
  9.     key_t  key;    /* key */
  10.         };
  11. /* COMMON IPC DEFINITIONS */
  12. /* MODE BITS  */
  13. #define IPC_ALLOC    0100000        /* entry selected */
  14. #define IPC_CREAT    0001000        /* create entry if no key exists */
  15. #define IPC_EXCL    0002000        /* terminate with error if key exists */
  16. #define IPC_NOWAIT    0004000        /* terminate with error if resource
  17.                         waiting is required */
  18. /* KEYS */
  19. #define IPC_RMID    0    /* delete identifier */
  20. #define IPC_SET        1    /* set WSET options */
  21. #define IPC_STAT    2    /* get options */